package com.bsj.travel.def.common.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bsj.crypt.annotation.SensitiveFiled;
import lombok.Data;

import java.util.Date;

/***
 * @description UserDO
 * @author LiJiaXin
 * @version 1.0.0
 * @time 2024/1/9 19:36
 **/
@Data
@TableName(value = "tab_user")
public class UserDO {

    /**
     * 用户id
     */
    @TableId(value = "userId", type = IdType.AUTO)
    private Integer userId;

    /**
     * 角色id
     */
    @TableField("roleId")
    private Integer roleId;

    /**
     * 上级id
     */
    @TableField("parentId")
    private Integer parentId;

    /**
     * 用户名
     */
    @TableField("userName")
    @SensitiveFiled
    private String userName;

    /**
     * 密码
     */
    @TableField("passWord")
    @SensitiveFiled
    private String passWord;

    /**
     * appId
     */
    @TableField("appId")
    private String appId;

    /**
     * 秘钥
     */
    @TableField("secretKey")
    private String secretKey;

    /**
     * 手机号
     */
    @TableField("phone")
    @SensitiveFiled
    private String phone;

    /**
     * 代码简称
     */
    @TableField("code")
    @SensitiveFiled
    private String code;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("updateTime")
    private Date updateTime;

}
